package com.baidu.bridge.api;

import com.baidu.bridge.dto.ab.*;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;

import java.util.List;

public interface AbApiService {

    // ==== 用户管理接口 ====
    @POST("/api/ai_apaas/console/manage/user/add")
    Call<CommonResponse<String>> addUser(@Body AddUserRequest request);

    @POST("/api/ai_apaas/console/manage/user/delete")
    Call<CommonResponse<String>> deleteUser(@Body DeleteUserRequest request);

    @POST("/api/ai_apaas/console/manage/user/update")
    Call<CommonResponse<String>> updateUser(@Body UpdateUserRequest request);

    @POST("/api/ai_apaas/console/manage/user/list")
    Call<CommonResponse<UserPageResult>> queryUserList(@Body QueryUserRequest request);

    // ==== 组织管理接口 ====
    @POST("/api/ai_apaas/console/manage/department/add")
    Call<CommonResponse<DepartmentTree>> addDepartment(@Body AddDepartmentRequest request);

    @POST("/api/ai_apaas/console/manage/department/update")
    Call<CommonResponse<String>> updateDepartment(@Body UpdateDepartmentRequest request);

    @POST("/api/ai_apaas/console/manage/department/delete")
    Call<CommonResponse<String>> deleteDepartment(@Body DeleteDepartmentRequest request);

    @POST("/api/ai_apaas/console/manage/department/tree")
    Call<CommonResponse<List<DepartmentTree>>> queryDepartmentTree();
}